package com.scud.cart.mapper;

import com.scud.model.cart.pojo.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author vermouth
 */
@Mapper
public interface CartMapper {
    //插入
    void insert(Cart cart);

    List<Cart> listByUserId(@Param("userId") Long userId);

    void removeSku(@Param("id") Long id);

    void removeAll(@Param("userId") Long userId);

}
